

            
// This code is a generated code by a tool
// designed and coded by Shohdi Mohamed Elsheemy ( shohdi@gmail.com )

            
using System;
using System.Collections.Generic;
using System.Web;
namespace DatabaseComponent
{
[Serializable]
public partial class Questions
{
System.Int64 _ID =-1;
public System.Int64 ID
{
get { return _ID;}
set { _ID = value;}
}
System.Int64 _CoursesID =-1;
public System.Int64 CoursesID
{
get { return _CoursesID;}
set { _CoursesID = value;}
}
System.Int64 _QuestionTypesID =-1;
public System.Int64 QuestionTypesID
{
get { return _QuestionTypesID;}
set { _QuestionTypesID = value;}
}
System.String _QuestionAR ="";
public System.String QuestionAR
{
get { return _QuestionAR;}
set { _QuestionAR = value;}
}
System.String _QuestionEN ="";
public System.String QuestionEN
{
get { return _QuestionEN;}
set { _QuestionEN = value;}
}
System.Double _QuestionDegree =-1;
public System.Double QuestionDegree
{
get { return _QuestionDegree;}
set { _QuestionDegree = value;}
}
public Questions()
{
}
public Questions(System.Int64 __CoursesID,System.Int64 __QuestionTypesID,System.String __QuestionAR,System.String __QuestionEN,System.Double __QuestionDegree)
{
_CoursesID = __CoursesID;
_QuestionTypesID = __QuestionTypesID;
_QuestionAR = __QuestionAR;
_QuestionEN = __QuestionEN;
_QuestionDegree = __QuestionDegree;
}
public Questions(System.Int64 __ID,System.Int64 __CoursesID,System.Int64 __QuestionTypesID,System.String __QuestionAR,System.String __QuestionEN,System.Double __QuestionDegree)
{
_ID = __ID;
_CoursesID = __CoursesID;
_QuestionTypesID = __QuestionTypesID;
_QuestionAR = __QuestionAR;
_QuestionEN = __QuestionEN;
_QuestionDegree = __QuestionDegree;
}


             public override bool Equals(object obj)
         {
             if (obj is Questions)
             {
                 Questions newObj = (Questions)obj;

                 if (newObj.ID == this.ID )
                 {
                     return true;
                 }
                 else
                 {
                     return false;
                 }
             }

             else
             {
                 return false;
             }

            
         }            











             }
}
